
    <aside>

      <div class="search">

        <form class="searchform" method="get" action="{:U('Search/index')}">

          <input type="text" name="title" value="Search" onfocus="this.value=''" onblur="this.value='Search'">

        </form>

      </div>

      <div class="sunnav">

        <ul>
        <foreach name='cat' item='vo'>
          <li><a href="{:U('Art/artlist','cat_id='.$vo[cat_id])}" target="_blank" title="网站建设">{$vo.cat_name}</a></li>
        </foreach>
        </ul>

      </div>

      <div class="tuijian">

        <h2>栏目更新</h2>

        <ol>
          <php>$rec = sp_sql_posts("cid:1;limit:0,9;",array("recommended"=>1));</php>
          <foreach name="rec" item="vo">
          <li><span><strong>{$key+1}</strong></span><a href="{:U('Art/art','art_id='.$vo[art_id])}">{$vo.title}</a></li>
          </foreach>
        </ol>

      </div>

      <div class="toppic">

        <h2>图文并茂</h2>
        <php>$ispic = sp_sql_posts("cid:1;limit:0,3;",array("istop"=>1,'pic'=>array('neq','')));</php>
        <ul>
        <foreach name="ispic" item="vo">
          <li><a href="{:U('Art/art','art_id='.$vo[art_id])}"><img src="__ROOT__/{$vo.pic}">{$vo.title}
            <p>感兴趣</p>
            </a></li>
        </foreach>
        </ul>

      </div>

      <div class="clicks">

        <h2>热门点击</h2>

        <ol>
        <php>$istop = sp_sql_posts("limit:0,9;order:art_hits desc;");</php>
        <foreach name="istop" item="vo">
          <li><span><a href="{:U('Art/art',array(art_id=>$vo[art_id]))}">{$vo.cat_name}</a></span><a href="{:U('Art/art','art_id='.$vo[art_id])}">{$vo.title}</a></li>
        </foreach>
        </ol>

      </div>

    </aside>